package cn.wolfcode.trip.app.web.controller;

import cn.wolfcode.trip.base.query.CommentaitQueryObject;
import cn.wolfcode.trip.base.service.ICommentaitService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/comments")
public class CommentaitController {

    @Autowired
    private ICommentaitService commentaitService;

    @GetMapping
    @ResponseBody
    //获取所有的子评论
    public Object getSubComment(CommentaitQueryObject qo){
        PageInfo pageInfo = commentaitService.getPageInfo(qo);
        return pageInfo;
    }




}
